package com.css.fxfzypg.base.dict.repository;

import com.css.fxfzypg.base.dict.repository.entity.DictDirectoryEntity;
import com.css.fxfzypg.base.dict.viewobjects.DictDirectoryQueryParams;
import org.springframework.data.domain.Page;
import java.util.List;

public interface DictDirectoryRepository {
    Page<DictDirectoryEntity> queryDictDirectorys(DictDirectoryQueryParams queryParams, int curPage, int pageSize);

    DictDirectoryEntity findById(String parentId);

    void save(DictDirectoryEntity directoryEntity);

    void deleteByAllParentIdContaining(String parentId);

    DictDirectoryEntity findOneByDictDirCode(String dictDirCode);

    List<DictDirectoryEntity> findOrderBySort();

    List<DictDirectoryEntity> findDirectorysByRoles(List<String> adminRoleId);

    List<DictDirectoryEntity> findAll();
}
